package observer;


public class WeatherStation {

	public static void main(String[] args) {
		WeatherData weatherData = new WeatherData();
		//
		CurrentConditionDisplay currentConditionDisplay = new CurrentConditionDisplay(weatherData);
		StatisticsDisplay statisticsDisplay = new StatisticsDisplay(weatherData);
		
		weatherData.setMeasurements(0, 0, 0);
		weatherData.setMeasurements(1, 1, 1);
		System.out.println("========remove one========");
		//weatherData.removeObserver(currentConditionDisplay);
		//weatherData.removeObserver(statisticsDisplay);
		weatherData.setMeasurements(3, 3, 3);
		weatherData.setMeasurements(4, 4, 4);
	}
}
